listview: Simplify a vfunc
authorBenjamin Otte <otte@redhat.com>
Fri, 3 Mar 2023 01:20:17 +0000 (02:20 +0100)
committerBenjamin Otte <otte.benjamin@googlemail.com>
Sun, 5 Mar 2023 15:23:20 +0000 (15:23 +0000)
commit9ee0696923591425f762f3857f76518cd4f153dc
tree4778ad9a630ead77bb4320d4ffaade0f5817000c
parentf3c53ae69d464b50903450c336e3dd1a275c8c3e
listview: Simplify a vfunc

Instead of making it 2 vfuncs for getting horizontal and vertical area,
make it one vfunc to get the area.

Also rewrite the implementations to use the tile's area instead of
trying to deduce things with fancy math.
gtk/gtkgridview.c
gtk/gtklistbase.c
gtk/gtklistbaseprivate.h
gtk/gtklistitemmanager.c
gtk/gtklistview.c